package com.example.superoa.model.pojos;

import java.io.Serializable;
import javax.persistence.*;


/**
 * The persistent class for the salary_card database table.
 * 
 */
@Entity
@Table(name="salary_card")
@NamedQuery(name="SalaryCard.findAll", query="SELECT s FROM SalaryCard s")
public class SalaryCard implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name="card_id")
	private int cardId;

	@Column(name="card_name")
	private String cardName;

	@Column(name="card_number")
	private String cardNumber;

	//bi-directional many-to-one association to SalaryPay
	@ManyToOne
	@JoinColumn(name="pay_id")
	private SalaryPay salaryPay;

	public SalaryCard() {
	}

	public int getCardId() {
		return this.cardId;
	}

	public void setCardId(int cardId) {
		this.cardId = cardId;
	}

	public String getCardName() {
		return this.cardName;
	}

	public void setCardName(String cardName) {
		this.cardName = cardName;
	}

	public String getCardNumber() {
		return this.cardNumber;
	}

	public void setCardNumber(String cardNumber) {
		this.cardNumber = cardNumber;
	}

	public SalaryPay getSalaryPay() {
		return this.salaryPay;
	}

	public void setSalaryPay(SalaryPay salaryPay) {
		this.salaryPay = salaryPay;
	}

}